package com.hex.ds.hdtp.core.inf.data.table.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @Package com.hex.ds.hdtp.core.inf.data.table.po
 * @ClassName TableTransferFieldMapPo
 * @Description 表迁移清单字段映射-PO对象
 * @Author Wang zhihao
 * @Date 2023/8/9 11:54
 * @Version v1.0
 **/
@Data
@TableName(value = "tm_table_transfer_field_map")
public class TableTransferFieldMapPo implements Serializable {

    @TableId(value = "pk_id", type = IdType.ASSIGN_UUID)
    private String pkId;

    @TableField(value = "list_pk_id")
    private String listPkId;

    @TableField(value = "field_order")
    private Integer fieldOrder;

    @TableField(value = "source_field_name")
    private String sourceFieldName;

    @TableField(value = "source_field_type")
    private String sourceFieldType;

    @TableField(value = "source_field_length")
    private String sourceFieldLength;

    @TableField(value = "source_comment")
    private String sourceComment;

    @TableField(value = "target_field_name")
    private String targetFieldName;

    @TableField(value = "target_field_type")
    private String targetFieldType;

    @TableField(value = "target_field_length")
    private String targetFieldLength;

    @TableField(value = "target_comment")
    private String targetComment;

    @TableField(value = "is_partition_field")
    private String isPartitionField;

    @TableField(value = "partition_field_mapping")
    private String partitionFieldMapping;

    @TableField(value = "is_major_key")
    private String isMajorKey;
}
